package hip.util;


import com.bsoft.hihis.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

@Slf4j
public class Test {

    private static final Logger LOGGER = LoggerFactory.getLogger(Test.class);

    public static void main(String[] args) {


        System.out.println("LOGGER.isDebugEnabled() = " + LOGGER.isDebugEnabled());
        LOGGER.debug("debug");
        System.out.println("LOGGER.isTraceEnabled() = " + LOGGER.isTraceEnabled());
        LOGGER.trace("trace");

        Date date = DateUtils.addDateTimeByType(new Date(1689782400000L), 9, Calendar.MONTH);
        date = DateUtils.addDateTimeByType(date, 7, Calendar.DAY_OF_MONTH);

        String s = DateUtils.dateShortToStr(date);
        LOGGER.info(s);

        String sdMedordstaCd = "16";
        StringUtils.isNotBlank(sdMedordstaCd);
        boolean flag = false;

        LOGGER.info(flag+"");

        try {
            int i = 1 / 0;
        } catch (Throwable throwable){
            log.error("调用失败", throwable);
        }

        List<String> idsFreqcaList = new ArrayList<>();
        String idsFreqcas = idsFreqcaList.stream().distinct().collect(Collectors.joining(","));
        System.out.println("idsFreqcas = " + idsFreqcas);
    }

}
